#ifndef HMC6352_h
#define HMC6352_h
#include "WProgram.h"
#include "/usr/share/arduino/libraries/Vector2D/Vector2D.h"

class HMC6352
{
 public:
  HMC6352();
  HMC6352(int address, int smoothSample, int VCCPin1, int VCCPin2);
  float _headingDeg;
  Vector2D _headingVect;
  float _headingSmoothDeg;
  Vector2D _headingSmoothVect;
  float headingSmoothDeg();
  Vector2D headingVect();
  float headingDeg();
  Vector2D headingSmoothVect();
  void calibrate(int timeMs);
private:
int _slaveAddress;
int _smoothSample;
};
#endif
